SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


/** Create Tables **/

/* Create stored procedures */
CREATE PROCEDURE dbo.[DnnProduct_CDS_TemplatesDelete]
	@ID int
AS
BEGIN
	DELETE
	FROM [DnnProduct_CDS_StampSets]
	WHERE [TemplateID] = @ID

	DELETE
	FROM [DnnProduct_CDS_DRMPermissions]
	WHERE [TemplateID] = @ID

	DELETE
	FROM [DnnProduct_CDS_Templates]
	WHERE [ID] = @ID
END
GO
